package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;


@TableName("mkt_reward")
public class MktReward extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 营销活动id */
    @Excel(name = "营销活动id")
    @TableField("act_id")
    private Long actId;

    /** 奖励名称 */
    @Excel(name = "奖励名称")
    @TableField("name")
    private String name;

    /** 是否关联 */
    @Excel(name = "是否关联")
    @TableField("relevance")
    private Long relevance;

    /** 关联商品 */
    @Excel(name = "关联商品")
    @TableField("product_id")
    private Long productId;

    /** 概率 */
    @Excel(name = "概率")
    @TableField("probability")
    private Float probability;

    /** 图片 */
    @Excel(name = "图片")
    @TableField("picture")
    private String picture;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setActId(Long actId)
    {
        this.actId = actId;
    }

    public Long getActId()
    {
        return actId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setRelevance(Long relevance)
    {
        this.relevance = relevance;
    }

    public Long getRelevance()
    {
        return relevance;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProbability(Float probability)
    {
        this.probability = probability;
    }

    public Float getProbability()
    {
        return probability;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("actId", getActId())
            .append("name", getName())
            .append("relevance", getRelevance())
            .append("productId", getProductId())
            .append("probability", getProbability())
            .append("picture", getPicture())
            .toString();
    }
}